package com.ahau.alibaba.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

/**
 * @Author xiao hu die
 * @Date 2022/1/2 20:46
 * @Version 1.0
 */
@Component
public class ApplicationConfig {
 @Bean
 @LoadBalanced
 public RestTemplate getRestTemplate(){
  return new RestTemplate();
 }
}
